<%@ page import="java.util.Vector" %>
<%@ page import="java.util.StringTokenizer" %><%--
  Created by IntelliJ IDEA.
  User: acer
  Date: 2024/9/19
  Time: 9:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>留言展示栏 | application</title>
    <style>
        body {
            background: RGBA(38, 38, 38, 1);
        }

        div {
            width: 800px;
        / / border: 1 px solid RGBA(100, 90, 87, 1);
            color: white;
        }

        span {
            font-size: 20px;
            font-weight: bold;
        }

        .span1 {
            color: white;
        }

        .span2 {
            color: orange;
        }

        .span3 {
            color: green;
        }

        .span4 {
            color: red;
        }
    </style>
</head>
<body>
<%
    Object o = application.getAttribute("message");
    if (o == null) {//全局变量message属性里内容为空 没有留言信息
        out.print("暂时还没有留言呢");
    } else {
        Vector<String> v = (Vector<String>) o;
        for (int i = v.size() - 1; i >= 0; i--) {
            StringTokenizer st = new StringTokenizer(v.get(i), ".");
            while (st.hasMoreElements()) {
                out.println(st.nextToken() + "<br>");
            }

        }
    }
%>
</body>
</html>
